<el-dialog title="填写归还信息" v-model="returnFormDialog">
  <el-form  ref="returnForm" :label-width="dialogLabelWidth" :model="returnForm" :rules="returnRules">
    <el-row>
    	<el-col :span="11"  >
    		<el-form-item label="归还人" prop="app_name">
          <el-select v-model="returnForm.app_name" filterable placeholder="请选择归还人">
            <el-option v-for="(value,key) in app_names" :label="value" :value="value"></el-option>
          </el-select>
        </el-form-item>
     </el-col>
     <el-col :span="11">
        <el-form-item label="名称" prop="name">
          <el-select v-model="returnForm.name" placeholder="请选择用品名称" @change="rnameChange">
            <el-option v-for="(value,key) in rnames" :label="value" :value="value"></el-option>
          </el-select>
        </el-form-item>
      </el-col>
    </el-row>
    
    <el-row>
    	<el-col :span="11">  
        <el-form-item label="规格" prop="specification">
          <el-select v-model="returnForm.specification" placeholder="请选择物品规格" @change="rspecChange">
            <el-option v-for="(value,key) in rspecifications" :label="value" :value="value"></el-option>
          </el-select>
        </el-form-item>
      </el-col>
      <el-col :span="11">  
        <el-form-item label="单位" prop="unit">
          <el-select v-model="returnForm.unit" placeholder="请选择物品单位" @change="runitChange">
            <el-option v-for="(value,key) in runits" :label="value" :value="value"></el-option>
          </el-select>
        </el-form-item>
      </el-col>
    </el-row>
    
    <el-row>
      <el-col :span="11">
        <el-form-item label="归还数量" prop="return_num">
          <el-input-number v-model.number="returnForm.return_num" :min="1" :max="rmaxNum"></el-input-number>
        </el-form-item>
      </el-col>
      <el-col :span="11">
        <el-form-item label="归还时间" prop="return_time">
          <el-date-picker v-model="returnForm.return_time" type="datetime" placeholder="选择归还时间" 
           style="max-width:200px;" :returnable="false" @change="returnTime">
          </el-date-picker>
        </el-form-item>
      </el-col>
    </el-row>
    <el-row>
    	<el-col :span="22">  
        <el-form-item label="备注" prop="remark">
          <el-input type="textarea" :rows="4" v-model="returnForm.remark" placeholder="请填写备注"></el-input>
        </el-form-item>
    	</el-col>
    </el-row>
  </el-form>

  <div slot="footer" class="dialog-footer">
    <el-button @click="closeDialog('return')">取 消</el-button>
    <el-button type="primary" v-show="!returnFormSubmitStatus" @click="addFormSubmit(page.returnFormUrl,'return')" >确 定</el-button>
    <el-button type="primary" v-show="returnFormSubmitStatus" :loading="true" >操作中</el-button>
  </div>
  </el-dialog>
